//
//  NSData+Encryption.h
//  vpntest
//
//  Created by glendale on 13-7-9.
//  Copyright (c) 2013年 glendale. All rights reserved.
//

#import <Foundation/Foundation.h>

@class NSString;

@interface NSData (Encryption)

- (NSData *)AES256EncryptWithKey:(NSString *)key;   //加密

- (NSData *)AES256DecryptWithKey:(NSString *)key;   //解密

- (NSString *)newStringInBase64FromData;            //追加64编码

+ (NSString*)base64encode:(NSString*)str;           //同上64编码
+ (NSString*) base64Encode:(NSData *)data;
@end
